#region head comment
/*
Code generate by YhdSdkTool.
email:starpeng@vip.qq.com
2013-01-21 23:00:56:935 +08:00
*/
#endregion

using System;
using System.Xml.Serialization;
using System.Collections.Generic;
using YhdSdk.Domain;
using YhdSdk.Domain.Product;
using YhdSdk.Response.Product;

namespace YhdSdk.Request.Product
{
    /// <summary>
    /// 批量提交商品审核
    ///<para></para>
    ///<para>根据产品ID或外部产品编码提交产品审核，成功则返回成功记录数，失败则返回失败记录数及相应的错误描述信息。</para>
    ///<para>(只有单品、套餐子品和虚品才能提交商品审核,套餐产品和系列子品不可以)</para>
    /// </summary>
    public class YhdProductsVerifySubmitRequest : IYhdRequest<YhdProductsVerifySubmitResponse>
    {
        /// <summary>
        /// 1号商城产品Id列表(逗号分隔),与outerIdList二选一(productIdList优先),相同的产品id做一个产品id处理,最多100条
        /// </summary>
        /// <example>1814540,1794134</example>
        [XmlArray("productIdList")]
        [XmlArrayItem("int64")]
        public List<Int64> ProductIdList
        {
            get;
            set;
        }

        /// <summary>
        /// 外部产品编码列表(逗号分隔),与productIdList二选一,相同的外部产品编码做1个处理,最多100条
        /// </summary>
        [XmlArray("outerIdList")]
        [XmlArrayItem("string")]
        public List<String> OuterIdList
        {
            get;
            set;
        }

        /// <summary>
        /// Api接口名称
        /// </summary>
        public String ApiName
        {
            get{ return "yhd.products.verify.submit"; }
        }

        /// <summary>
        /// 获取参数列表
        /// </summary>
        public IDictionary<string, string> GetParameters()
        {
            YhdDictionary parameters = new YhdDictionary();
            parameters.Add("productIdList" ,this.ProductIdList);
            parameters.Add("outerIdList" ,this.OuterIdList);
            return parameters;
        }

        /// <summary>
        /// 验证参数
        /// </summary>
        public void Validate()
        {
        }

    }
}
